package org.tity.sql.sql;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.tity.sql.entity.builder.naming.DefaultNameConvertor;

public class NCTest {

	@Test
	public void nc_test() {
		
		DefaultNameConvertor nc=new DefaultNameConvertor();
		String n=nc.getClassName("org_dept", 1);
		assertTrue("Dept".equals(n));
		n=nc.getClassName("org_dept", 0);
		assertTrue("OrgDept".equals(n));
		n=nc.getClassName("org_dept", 2);
		assertTrue("OrgDept".equals(n));
	}
	
}
